home *** CD-ROM | disk | FTP | other *** search
- This one of the main .ref files the LORD II engine will use as
- references. For help on making your OWN, check out REFHELP.DOC.
-
- Default LORD II files use the vars like this:
-
- The gold and bank vars are special cases, other vars do not have names.
-
- The list of how the variables are used has moved to VARLIST.DAT. This file
- is read by the configuration program - it gives descriptions in the player
- editor from this file. Check this file if you want to know what a var is
- for, or what free ones are available.
-
-
- @#showlog
- @routine readlog in logstuff.ref
- @drawmap
- @update
-
- @#busy
- ;player cannot play, someone is attacking him or something
- @show
- `c `r1 `%PROBLEM. `r0
-
- `2Someone is attacking/giving you an item, please try again in few
- minutes.
-
- `k
- @halt 0
-
- @#FULL
- ;There are already 200 people playing.
- @show
- `r0`c `r1`% UH OH. `r0
-
- `2 This game already has `0200`2 people in it. Please try again in a few
- days, people are deleted after `%15`2 days of inactivity.
-
- `2Sorry. Until then, you can only dream of the wonderful world that awaits.
-
- `k
- @
-
- @#drawstats
- @do move 1 5
- @do `s10 is `p01
- @do pad `s10 18
- @do write
- `2Experience : `0`s10 `2Hitpoints : (`0`p02`2 of `0`p03`2)`\
- @do `p20 is gold
- @do `s10 is `p20
- @do pad `s10 18
- @do `p20 is bank
- @do `s09 is `p20
- @do write
- `2Gold on hand: `$`s10 `2Gold in bank : `$`s09`\
- @do `s10 is `0
- @if `p07 less 0 then `s10 is `4
- @do `s10 add `p07
- @do pad `s10 18
- @do write
- `2Alignment : `0`s10 `2Charm : `0`p08`\
- @do `s10 is `p11
- @if `p11 is 0 then `s10 is `4None
- @if `v05 < 1 then `s10 is Unlimited
- @do pad `s10 18
- @do write
- `2Turns Left : `0`s10 `2Time left : `0&timeleft`\
-
- @do `s10 is S&weapon
- @do pad `s10 18
- @do `p20 is S&wep_num
- @do `p20 + `p04 (adding muscle to weapon strength to show it)
- @do write
- `2Weapon : `0`s10 `2Total Attack : `0`p20 `\
- @do `s10 is S&armour
- @do pad `s10 18
- @do `p20 is S&arm_num
- @do `p20 + `p05 (adding dodge to armour defense to show it)
- @do write
- `2Armour : `0`s10 `2Total Defense: `0`p20 `\
-
- @#drawwep
- ;code to redraw the weapon for arming/unarming.
- @do move 3 9
- @do `s10 is S&weapon
- @do pad `s10 18
- @do `p20 is S&wep_num
- @do `p20 + `p04 (adding muscle to weapon strength to show it)
- @do write
- `r0`2Weapon : `0`s10 `2Total Attack : `0`p20 `\
-
- @#drawarm
- ;code to redraw the armour for arming/unarming.
- @do move 3 10
- @do `s10 is S&armour
- @do pad `s10 18
- @do `p20 is S&arm_num
- @do `p20 + `p05 (adding dodge to armour defense to show it)
- @do write
- `r0`2Armour : `0`s10 `2Total Defense: `0`p20 `\
-
- @#stats
- @show
- `r0`c`0 `n`2's status and information. (level `0`p09`2)
- `0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- @routine drawstats in gametxt.ref
- @do move 1 12
- @show
- `r5 `%Item Quantity `r0
- @do move 1 24
- @do write
- `r5`% `$`%Q `$to quit, `%ENTER`$ to use/equip/eat, `%D`$ to drop, `%N`$ for next page & `%P`$ for prev. `r0
- @do move 1 12
- @#closestats
- @drawmap
- @update
- @closescript
-
- @#startgame
- ;do startgame routines here
- @version 80
- ;if version 80 or newer isn't detected, it will tell the player to
- ;upgrade
- @do `v01 is 1
-
- @do write
- `r0`c
-
- @if `p10 is &time then do
- @begin
- ;guy has already played today
-
- @if dead is 1 then do
- @begin
- @if mail\mail&playernum.dat exist true then do
- @begin
- @checkmail
- @key
- @end
-
- @if `v03 is 0 then do
- @begin
- @show
- `r0`c `r1 `%A PROBLEM. `r0
-
- `2 You are lying battered and bruised on the ground. You can't do much
- in this state.
-
- `0Try again tomorrow.
-
- `k
- @halt
- @end
- @end
-
-
- @show
- `r1 DAY &time `r0
-
- `2 You have already been out and about today.
-
- @if `p11 > 0 then do
- @show
- `2You have `0`p11`2 turns left today.
-
- @end
-
- @if `p10 not &time then do
- @begin
- ;NEWDAY!
- @do `p10 is &time
- @do `p11 is `v05 ;this will give them the turns set in rules.ref
- @do `t04 is 0 ;<-- Can fight master now
- @do `p02 is `p03 ;<-- Give 'em max hit points
- @do dead is 0 ;<-- Is now alive
- @do `t09 is 0 ;<-- Has not visited shrine today
- @do `t10 random 10 5 ;<-- Amount of fish in stream today
- @do `p31 is `v07 ;<-- Reset quests per day possible
- @do `p33 is `v08 ;<-- Reset gambles per day possible
- @do `p32 + 1 ;<-- Advance quest age.. doesn't matter if there is one
- @bitset `t12 7 0 ;<-- Has not LOST at Arena yet today
- @if s&wep_num > 0 then do
- @begin
- @show
- `r1 DAY &time `r0
-
- @if `p11 > 0 then do
- @begin
- @show
- `2It is morning. You have `0`p11`2 turns left today.
-
- @end
- @show
- `2 You wake up early, strap your `0s&weapon`2 to your back and prepare for
- adventure!
-
- @end
-
- @if dead is 0 then do
- @begin
-
- @if s&wep_num is 0 then do
- @begin
- @show
- `r1 DAY &time `r0
-
- @if `p11 > 0 then do
- @begin
- @show
- `2It is morning. You have `0`p11`2 turns left today.
-
- @end
- @show
- `2 You wake up early, and prepare for adventure!
-
- @end
- @end
- @end
-
-
-
- @if `v03 is 1 then do
- @begin
- @if dead is 1 then do
- ;if he is dead when he logs on
- @begin
- @do X is 27
- @do Y is 7
- @do dead is 0 ;he is now alive
- @do `p02 is `p03 (give 'em max hit points)
- @do MAP is 155 (move 'em home)
- @end
- @end
-
-
- @if map < 0 then map is 155
- @if map is 1 then do
- @begin
- @do map is 155
- @show
- `2Your mother is sitting by your bed, weeping.
-
- `k `$"Mom? Why the tears? Is it something I've done?" `2you ask.
-
- `k `0"I was so worried!" `2you mother sobs, `0"When the town elders
- brought you here last night I was sure you were dead!"
-
- `$"I'm sorry mother. I shall never scare you like this again!" `2you
- promise.
-
- @end
- @if x < 1 then x is 27
- @if y < 1 then y is 7
- @if x > 80 then x is 27
- @if y > 24 then y is 7
- @show
- `k
- @do talk `0`n`x`2has`xentered`xthe`xrealm. all
-
- @routine readlog in logstuff.ref
-
- @#endgame
- ;do end routines here
- @do talk `0`n`x`2has`xleft. all
- @if dead is 0 then do
- @begin
- @do move 1 24
- @show
-
- `r0 `2You are lulled to sleep by a gentle breeze...
-
- `0Come back soon.
- `2
- @end
-
- @#RUN ;if the guy runs
- @drawmap
- @update
-
- @#DIE
- @do move 3 24
- @do write
- `r0 `x
- @do move 3 24
- @do write
- `4You've been killed. `k
-
- @do X is 27
- @do Y is 7
- @do money / 2
- @do `p02 is `p03 (give 'em max hit points)
- @do `p20 is `p01
- @do `p20 / 5
- @do `p01 - `p20
- @do MAP is 155
- @do dead is 1
- @update_update
-
- @do talk `4Newsflash:`0`x`n`x`2was`xdefeated`xby`x`0`e`2! all
- @do addlog
- `0`n`2 was whipped up on by `0`e`2!
- @routine seperate
-
- @pauseoff
- @show
- `r0`c
- C▄▄▄█████████▄▄▄
- C▄██░░░░█░███████████▄
- C█░░░░██████████████████▌
- C█░▒▒░████████▐▄██████████
- C▄▄C▐░▒▓░████████████▀▀█████
- AC▐██
- C▀▄█▌ ░▒▓▒░█████▄ ▌█▐█▄
- AC█████▄▄▓██C▄▒▓▄
- C▄░██▄▄ ▒▓▒░ ██░
- AC█░░▓▌▄▀░▄█░████▀▓▌
- AC▌▄░█▒▌
- C▓▒░██▀▄▄ ▐▄▀▀ ▀▀▓
- AC▓▓░▄▓▀▀C▀▀▀▐▒░▀ ▀
- C▀▀▀░░█ ░C▄ ▀ ▒▓
- AC▓▓░▒ ▀ ▐▌▓▀
- C▀░▒▌▐█▄▄ ▄▄▀▀▀▀
- AC▀▄▄ ▄█▄▌▌
- C▓▀▄▄ ██▀▀▄▄▀▌ ▌ ▐
- AC▄▄▀▀████▀▄▄
- C█▀████▄▓▓▄█C▓▄ ░▒
- AC░█████▀▀
- C▀██░▓▓▒▓░▄▄░▓▒░▒▓▀▀ ▀▀▀▀
- C▄▄ ▀▄ ▀▀▀▀ ▀▀▀ ▄▀ ▓▒▄
- C▄░▒▓▌ ▀ ░▌▓█▐█▀▄
- AC░▀ ▄ ▒░█▄
- C▄ ▒░░░▀ ▄ ▀ ▄ ▄▄ ▄▄ ▄
- AC▀▄░C▀ ▒▄▄▄
- C▄▓▓▒░░▒▌▀ ▄██▐█▄▄ ▄▄▄▄▄ ▄▄
- AC░▒██▄ ▀▒░▒▀▓
- C▄ ▄▀█▒▀▄▓▄▄ ▀▀▄
- AC▀███▄▀████ ▄▀▀ ▄▄▌▐
- AC▒▄▌▄
- C░▒▓█▄▀▀▄▄▄▀▀▀▀▄ ▀▀
- AC██▄▒▓▒▄▀▄▀▀ ▄
- AC▀▀▀▄▄▀▄▄█▓▒░
-
- `%You have made an error, s&boy.
-
- `k
- @if `v03 is 0 then do
- @begin
- ;rules.ref file says unlimited deaths not allowed, so we will boot them
- ;till tomorrow
-
- ;take them off the map
- @do map is 1
- @halt
- @end
-
- @pauseon
-
- @do dead is 0
-
- @if `p07 less 0 then do
- @begin
- @show
- `r0`c`% `r1IT FEELS KINDA WARM IN HERE?`r0
-
- `4You open your eyes.
-
- `k `4There are naked screaming people all around you. A little boy with
- a ghastly face begins to gnaw on your leg.
-
- `k `6"Din, leave the newcomer alone. S&he isn't staying." `4a slow voice that
- can only be described as an abomination dolefully states.
-
- `k `2You feel yourself floating away... faster and faster.
- @end
-
- @if `p07 more -1 then do
- @begin
- @show
- `r0`c`% `r1APPARENTLY DEATH ISN'T THE END.`r0
-
- `2You open your eyes.
-
- `k `2You are lying on a table of solid rock in a marble room. Hundreds of
- soft voices are murmuring all around you, but you see no one.
-
- `k `%"Send s&him back." `2a voice whispers, this one louder than the others.
-
- `k `2You feel yourself floating away... faster and faster.
-
- `k
- @end
-
-
- @show
- `c `r1`%AWAKENING.`r0
-
- `0"Can you hear me, `n?" `2a stressed voice shouts.
-
- `$"Yeah. Christ mom, lemmie up, I'm fine." `2you assure your mother.
-
- `0"You're alive!! The elders brought your body here yesterday, you must
- have fainted out there." `2your mother shouts, tears of joy streaming down
- her wrinkled face.
-
- `$"Ok, ok - nice little happy reunion and all that, but I gotta hit the
- road now. Buhbye." `2you tell her. Afterall, you need to make the most of
- this new lease on life.
-
- `2You lose `4half`2 the gold you were carrying and `4`p20`2 experience.
-
- `k
- @loadmap map
- @drawmap
- @update
-
- @#live
- @do talk `4Newsflash:`0`x`n`x`2has`xslain`x`0`e`2! all
- @do `V40 random 5 1
- @if `v40 is 1 then addlog
- `0`n`2 has killed `0`e`2 over a dispute involving cattle!
- @if `v40 is 2 then addlog
- `0`n`2 has crushed `0`e`2's skull.
- @if `v40 is 3 then addlog
- `0`n`2 has beaten `0`e`2 in a fair battle!
- @if `v40 is 4 then addlog
- `0`n`2 has killed `0`e`2 to avenge his mother!
- @if `v40 is 5 then addlog
- `0`n`2 buries `0`e`2's rotting body.
-
-
- @routine seperate
-
- @#newplayer
-
- @routine help in help.ref
-
- @do `V40 random 5 1
- @if `v40 is 1 then `s10 is Elwin
- @if `v40 is 2 then `s10 is Geengish
- @if `v40 is 3 then `s10 is Dimdom
- @if `v40 is 4 then `s10 is Magi
- @if `v40 is 5 then `s10 is Whinny
-
-
- @show
- `c `%IN THE BEGINNING.
-
- `2There once was a poor `$`s10 `2couple who lived in a small village called
- `0Stonebrook`2.
-
- One day the mother felt very sick. Scared, her husband took her to Nathan,
- the town physician - after careful examination he smiled wide.
-
- `0"Dear woman, you aren't sick - you are with child!"
-
- @KEY
- @show
- `c `%IN THE BEGINNING.
-
- `2The baby was born six months later - strangely enough on `0Gryphon Moon`2 day.
-
- The young mother was delighted to find she had a new baby
- @do `v01 is 1
- @do move 61 7
- @choice
- boy.
- `#girl.
- @if responce is 1 then sexmale is 1
- @if responce is 2 then sexmale is 0
- @show
-
- @label namebaby
- @do `v01 is 1
- @if sexmale is 1 then `s10 is him`x
- @if sexmale is 0 then `s10 is her`x
- @show
-
- @do write
- `2The mother decided to name `s10
- @do readstring 20 NIL
- @do stripbad `s10
- ; change dark blue to light blue in their name
- @do replaceall `1 `! `s10
- @do `p20 is length `s10
- @if `p20 less 1 then do
- @begin
- @do move 35 y
- @show
- `bNothing`2.
-
- `2She decided to name the baby nothing `8-`2 instead she sold the child
- for `$20`2 gold pieces. That night she was overcome with guilt and hung
- herself on the rotting pine behind the cottage.
-
- Have a nice day, loser!
-
- @closescript
- @end
-
-
-
- @if `p20 less 3 then do
- @begin
- @show
-
-
- `2But the husband disagreed. `0"Not such a short name, dear!"
- @do goto namebaby
- @end
-
- @if checkdupe `s10 true then do
- @begin
- @show
-
-
- `2But the husband disagreed. `0"We already know someone with that name!"
- @do goto namebaby
- @end
-
- @end
-
-
-
- @show
- `\`\ `2She decided on `0`s10`2. The husband studied his wife carefully.`\
- @do write
- `x`x
- @choice
- "That is a good name. You have chosen very well, wife."
- "I don't think so. Try again."
- @if response is 2 then goto namebaby
- @do copytoname
- @if sex is 1 then `s09 is she
- @if sex is 0 then `s09 is he
- @show
- `c `r1 `%ARE YOU READY? `r0
-
- `0Cunning. `4Guileful. `0Friendship. `4Deceit. `0Honor. `4Disgrace.
-
- `%Life is what you make it.
-
- `0Return to the adventure:
-
- ■ `2killing and loving
- `0■ `2questing with other players
- `0■ `2traveling a huge land with diverse terrain
- `0■ `2purchase and upgrade your own dwelling
- `0 ■ `2realtime online battles, chat & item trade
- `0 ■`2 follow your heart and find your own path
-
- `k
- @show
- `c `r1 `%SOME YEARS LATER `r0
-
- `0One day you hear your mother shrieking the kitchen of your small cottage.
-
- `2You'd better get out of bed and find out what she wants.
-
- `|`b* `%NOTE `b*
-
- `2This game requires a fully `2A`3N`4S`5I `2compliant terminal. If screens appear
- jumbled `8- `2we suggest you try another terminal program, as this game is
- not compatible with all of them. `%ALSO`2: Instead of arrow keys, you may
- also use the `$numeric keypad`2, turn numlock on to do this.
-
- @KEY
- ;Give them starting stuff
- @do `p01 is 1
- @do `p02 is 10
- @do `p03 is 10
- @do `p04 is 5
- @do `p05 is 1
- @do `p09 is 1
- @do X is 27
- @do Y is 7
- @do MAP is 155
- @addchar
-
- @#seperate
- @writefile lognow.txt
- `2-`0=`2-`%=`2-`0=`2-
- @closescript
-
- @#MAINT
- @if lognow.txt exist true then do
- @begin
- @if logold.txt exist true then delete logold.txt
- @do rename lognow.txt logold.txt
- @end
-
- @do `p20 random 5 1
-
- @if `p20 is 1 then addlog
- `2It is a beautiful day today.
-
- @if `p20 is 2 then addlog
- It is foggy today.
-
- @if `p20 is 3 then addlog
- It is raining today.
-
- @if `p20 is 4 then addlog
- It is overcast today.
-
- @if `p20 is 5 then addlog
- It is incredibly hot today.
-
- @do `v02 is `p20 ;record weather
-
- @routine seperate
-
- ;now lets see what the 'shrine' is doing today, if anything
- @do `v04 random 20 1
-
- @if `v04 is 1 then do
- @begin
- @do addlog
- `0The Shrine Of Babos observes the `%Gryphon Moon`0.
- @routine seperate
- @end
-
- @if `v04 is 2 then do
- @begin
- @do addlog
- `0The Shrine Of Babos celebrates the `%Vitalis`0 holiday.
- @routine seperate
- @end
-
- @if `v04 is 3 then do
- @begin
- @do addlog
- `0The Shrine Of Babos performs the rite of `%Belar`0.
- @routine seperate
- @end
-
- @if `v04 is 4 then do
- @begin
- @do addlog
- `0The Shrine Of Babos sings the psalms of `%the rock`0.
- @routine seperate
- @end
-
- @saveglobals
-
- @do `s01 is NIL
-
- @do `p20 random 9 1
- @if `p20 is 1 then `s01 add Grizelda
- @if `p20 is 2 then `s01 add `n
- @if `p20 is 3 then `s01 add Turgon
- @if `p20 is 4 then `s01 add Grimgroth
- @if `p20 is 5 then `s01 add Abdul
- @if `p20 is 6 then `s01 add Pap
- @if `p20 is 7 then `s01 add Barak
- @if `p20 is 8 then `s01 add Santiger
- @if `p20 is 9 then `s01 add Goatboy
-
- @do `s01 add `x
-
- @do `p20 random 10 1
- @if `p20 is 1 then `s01 add sucks
- @if `p20 is 2 then `s01 add bites
- @if `p20 is 3 then `s01 add worships
- @if `p20 is 4 then `s01 add kills
- @if `p20 is 5 then `s01 add loves
- @if `p20 is 6 then `s01 add throws
- @if `p20 is 7 then `s01 add eats
- @if `p20 is 8 then `s01 add licks
- @if `p20 is 9 then `s01 add rides
- @if `p20 is 10 then `s01 add drinks
-
- @do `s01 add `x
-
- @do `p20 random 9 1
- @if `p20 is 1 then `s01 add apples
- @if `p20 is 2 then `s01 add snakes
- @if `p20 is 3 then `s01 add Belar
- @if `p20 is 4 then `s01 add salt
- @if `p20 is 5 then `s01 add monsters
- @if `p20 is 6 then `s01 add dragons
- @if `p20 is 7 then `s01 add water
- @if `p20 is 8 then `s01 add horses
- @if `p20 is 9 then `s01 add children
-
- @if l2tree.dat exist true then delete l2tree.dat
- @writefile l2tree.dat
- `s01
- @
-
-
- @#NOTHING
-
-
-